package com.cn.xiaonuo.slbfinances.sladapays.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.sladapays.service.IAdapayWalletService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class AdapayWalletController {

    @Resource
    private IAdapayWalletService adapayWalletService;

    @ApiOperation(value = "汇付天下--查询汇付天下钱包信息", notes = "汇付天下--查询汇付天下钱包信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "slUserId", value = "用户ID（Integer）", example = "10086"),
            @ApiImplicitParam(name = "pageNo", value = "第几页（Integer）", required = true),
            @ApiImplicitParam(name = "pageSize", value = "每页长度（Integer）", required = true)
    })
    @PostMapping("/api/adapayWallet/queryAdapayWalletList")
    public BusinessMessage queryWalletList(Integer pageNo, Integer pageSize, Integer slUserId) throws Exception {
        return adapayWalletService.queryWalletList(pageNo, pageSize, slUserId);
    }

}
